package com.belarus.kamianiec.photo.photoSite.web.inner;

import org.zkoss.bind.BindUtils;
import org.zkoss.bind.annotation.NotifyChange;

public class ContactsAppVm {

	private String title;
	private String body;
	private String image1Src;
	private String bottom;

	private final static String titleName = "title";
	private final static String bodyName = "body";
	private final static String image1SrcName = "image1Src";
	private final static String bottomName = "bottom";

	public ContactsAppVm() {
		title = "CONTACTS";
		body = "testing......";
		image1Src = "/images/contactsApp/img1.png";
		bottom = "phones....";
	}

	/**
	 * @return the title
	 */
	public String getTitle() {
		return title;
	}

	/**
	 * @param title
	 *            the title to set
	 */
	@NotifyChange(titleName)
	public void setTitle(String title) {
		this.title = title;
		BindUtils.postNotifyChange(null, null, this, titleName);
	}

	/**
	 * @return the body
	 */
	public String getBody() {
		return body;
	}

	/**
	 * @param body
	 *            the body to set
	 */
	@NotifyChange(bodyName)
	public void setBody(String body) {
		this.body = body;
		BindUtils.postNotifyChange(null, null, this, bodyName);
	}

	/**
	 * @return the imageSrc
	 */
	public String getImage1Src() {
		return image1Src;
	}

	/**
	 * @param imageSrc
	 *            the imageSrc to set
	 */
	@NotifyChange(image1SrcName)
	public void setImage1Src(String image1Src) {
		this.image1Src = image1Src;
		BindUtils.postNotifyChange(null, null, this, image1SrcName);
	}

	/**
	 * @return the bottom
	 */
	public String getBottom() {
		return bottom;
	}

	/**
	 * @param bottom
	 *            the bottom to set
	 */
	@NotifyChange(bottomName)
	public void setBottom(String bottom) {
		this.bottom = bottom;
		BindUtils.postNotifyChange(null, null, this, bottomName);
	}

}
